package cn.yangliu.entity;

import cn.yangliu.constant.CallbackFunction;
import org.springframework.context.ApplicationEvent;

import java.util.Optional;

/**
 * the type of serial-port-tool
 *
 * <p>
 * .
 *
 * @author 杨柳
 * @date 2024-05-28
 */
public class ToolApplicationEvent extends ApplicationEvent {

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public ToolApplicationEvent(Object source) {
        super(source);
    }


    public ToolApplicationEvent(CallbackFunction function) {
        super(Optional.empty());
    }

}
